package com.sep.team4.data;

/**
 * Instances of this class represent a grade the user received for a test.
 * 
 * @author Mitchell
 * 
 */
public class Grade {

	// The value of the grade.
	private double value;
	// Which attempt the grade belongs to.
	private int attempt;
	// The date the grade was entered into the system.
	private String date;

	/**
	 * The constructor.
	 * 
	 * @param value
	 *            The value of the grade.
	 * @param attempt
	 *            Which attempt the grade belongs to.
	 * @param date
	 *            The date the grade was entered into the system.
	 */
	public Grade(double value, int attempt, String date) {
		this.value = value;
		this.attempt = attempt;
		this.date = date;
	}
	
	public Grade(){
	}

	
	
	public void setValue(double value) {
		this.value = value;
	}

	public void setAttempt(int attempt) {
		this.attempt = attempt;
	}

	public void setDate(String date) {
		this.date = date;
	}

	/**
	 * Returns the value of the grade.
	 * 
	 * @return The value of the grade.
	 */
	public double getValue() {
		return value;
	}

	/**
	 * Returns the attempt of the grade.
	 * 
	 * @return The attempt of the grade.
	 */
	public int getAttempt() {
		return attempt;
	}

	/**
	 * Returns the date of the grade.
	 * 
	 * @return The date of the grade.
	 */
	public String getDate() {
		return date;
	}

}
